how to solve compound inequalities